﻿@model IEnumerable<ConsoleApplication2.Models.CustomerList>
@{
    Layout = null;
}
<html dir="rtl">

<script type="text/javascript">
    function closechildwindow(name) {
        
        window.opener.document.location.href = '/BasicScheduler?recordID='+name;
        window.close();
    }
</script>

</head>

<body>
    
    </script>
    <style type="text/css">
        table.t1 {
            margin: 1em auto;
            border-collapse: collapse;
            font-family: Arial, Helvetica, sans-serif;
        }

        .t1 th, .t1 td {
            padding: 4px 8px;
        }

        .t1 thead th {
            background: #4f81bd;
            text-transform: lowercase;
            text-align: left;
            font-size: 15px;
            color: #fff;
        }

        .t1 tr {
            border-right: 1px solid #95b3d7;
        }

        .t1 tbody tr {
            border-bottom: 1px solid #95b3d7;
        }

            .t1 tbody tr:nth-child(odd) {
                background: #dbe5f0;
            }

            .t1 tbody th, .t1 tbody tr:nth-child(even) td {
                border-right: 1px solid #95b3d7;
            }

        .t1 tfoot th {
            background: #4f81bd;
            text-align: left;
            font-weight: normal;
            font-size: 10px;
            color: #fff;
        }

        .t1 tr *:nth-child(3), .t1 tr *:nth-child(4) {
            text-align: right;
        }
    </style>
    <form method="get">
        <div>
            <label for="searchGenre">البحث عن مريض</label>
            <input type="text" name="str" value="" />
            <input type="Submit" value="ارسل" /><br />

        </div>
    </form>
    @if (Model != null)
    {
        <table class="t1">
            <tr>
                <th>
                    الاسم الانجليزي
                </th>
                <th>
                    الاسم العربي
                </th>
                <th>
                    رقم الهويه
                </th>
                <th>
                    الجوال
                </th>
                <th>
                    الهاتف
                </th>
                <th>
                    رقم الملف
                </th>

            </tr>

            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        <a onclick="closechildwindow(@item.recordNumber)" href="">  @Html.DisplayFor(modelItem => item.englishName)</a></td>
                    <td>
                        @Html.DisplayFor(modelItem => item.arabicName)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.natID)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.mobile)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.phone)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.recordNumber)
                    </td>
                </tr>
            }

        </table>

    }
    </body>
</html>
